/*
 * Copyright (c) 2015. For Intelligent Group.
 */

package com.intelligent.ispc.core.entity;

import com.intelligent.ispc.common.persistence.BaseEntity;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Created by Peter.Li on 2015/10/27.
 */
@Entity
@Table(name = "t_controlchartwarningrule")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class ControlChartWarningRule extends BaseEntity {
    private String code;
    private Integer points;
    private Integer somePoints;
    private Integer sigma;
    private Boolean isVisible;
    private String detailRule;

    @ManyToOne
    @JoinColumn(name = "project_id")
    private Project project;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getPoints() {
        return points;
    }

    public void setPoints(Integer points) {
        this.points = points;
    }

    public Integer getSomePoints() {
        return somePoints;
    }

    public void setSomePoints(Integer somePoints) {
        this.somePoints = somePoints;
    }

    public Integer getSigma() {
        return sigma;
    }

    public void setSigma(Integer sigma) {
        this.sigma = sigma;
    }

    public Boolean getIsVisible() {
        return isVisible;
    }

    public void setIsVisible(Boolean isVisible) {
        this.isVisible = isVisible;
    }

    public Project getProject() {
        return project;
    }

    public void setProject(Project project) {
        this.project = project;
    }

    public String getDetailRule() {
        return detailRule;
    }

    public void setDetailRule(String detailRule) {
        this.detailRule = detailRule;
    }
}
